<?php 

class Valideur_model extends CI_Model{
    
    function __construct(){
        
        parent::__construct();        
    }

  // Create Valideur record in database
  function addValideur($data)
  {
    $this->db->insert('valideurs', $data);
  }

  // Retrieve all valideur records
  function listValideurs()
  {
    return $this->db->get('valideurs');
  }

  // Retrieve one valideur record
  function getValideur($id)
  {
    return $this->db->get_where('valideurs', array('id'=> $id));
  }

  // Update one valideur record
  function updateValideur($id, $data)
  {
    $this->db->where('id', $id);
    $this->db->update('valideurs', $data); 
  }

  // Delete one valideur record
  function deleteValideur($id)
  {
    $this->db->where('id', $id);
    $this->db->delete('valideurs'); 
  }

}
/* End of file mvalideur.php */
/* Location: ./system/application/models/mvalideur.php */
